package note1.chapters.chapterb;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class CollectionTest {
	public static void main(String[] args) {
		Collection<Integer> c = new ArrayList<Integer>(Arrays.asList(1, 2, 3));
		Integer nums[] = { 4, 5, 6 };
		c.addAll(Arrays.asList(nums));
		Collections.addAll(c, 7, 8, 9);
		Collections.addAll(c, nums);
		List l = Arrays.asList(10, 11, 12);
		l.set(1, 22);
	}
}
